package appapi.Vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author djq
 * @date 2023/6/1 9:37
 * @description:
 */
@Data
@ApiModel
public class GetDismantPageVo {
    /**
     * 记录ID
     */
    @ApiModelProperty(value = "记录ID")
    private Long dismId;

    /**
     * 安拆类型
     */
    @ApiModelProperty(value = "安拆类型")
    private Long dismType;

    /**
     * 安拆类型
     */
    @ApiModelProperty(value = "安拆类型名称")
    @Excel(name = "安装类型",orderNum = "4",width = 20)
    private String dismTypeName;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id")
    private Long equipId;

    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    @Excel(name = "设备类型",orderNum = "0",width = 20)
    private String equipTypeName;


    /**
     * 设备别名
     */
    @ApiModelProperty(value = "设备别名")
    @Excel(name = "设备别名",orderNum = "1",width = 20)
    private String equipName;

    /**
     * 规格型号
     */
    @ApiModelProperty(value = "规格型号")
    @Excel(name = "规格型号",orderNum = "2",width = 20)
    private String equipModel;

    /**
     * 所在公司
     */
    @ApiModelProperty(value = "所在公司id")
    private Long orgaId;

    /**
     * 所在公司名称
     */
    @ApiModelProperty(value = "所在公司名称")
    @Excel(name = "所属机构",orderNum = "3",width = 20)
    private String orgaName;

    /**
     * 所在项目
     */
    @ApiModelProperty(value = "所在项目id")
    private Long projId;

    /**
     * 所在项目名称
     */
    @ApiModelProperty(value = "所在项目名称")
    private String projName;

    /**
     * 安装日期
     */
    @ApiModelProperty(value = "安装日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "安装日期",orderNum = "5",width = 20,format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime dismDate;

    /**
     * 安拆状态
     */
    @ApiModelProperty(value = "安拆状态")
    private String dismResult;

}
